package com.xbongbong.pro.smartsettings.pojo.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 获取智能助手入库记录
 *
 * @Author: hongxiao
 * @date: 2019-11-28 15:35
 */
@Getter
@Setter
@ToString
public class GetHistoryDTO implements Serializable {
    private static final long serialVersionUID = 2606082942127580247L;

    @NotEmpty(message = "{dto.msg.getHistory.xbbCode.NotEmpty}")
    private String xbbCode;

    @NotBlank(message="{dto.msg.getHistory.corpid.NotBlank}")
    private String corpid;

    private String userId;
    /**
     * 智能助手id
     */
    @NotNull(message="{dto.msg.getHistory.aiAssistantId.NotNull}")
    private Long aiAssistantId;
    /**
     * 时间区间（time_and_executor中的时间）
     * 最多查询10天数据
     */
    @Size(min = 1, max = 2, message = "{dto.msg.getHistory.timeSpan.Size}")
    private List<String> timeSpan;
}
